<template lang="pug">
  kalix-dialog.user-add(title='修改' bizKey="linechartrequest" ref="kalixBizDialog" v-bind:formModel.sync="formModel" v-bind:targetURL="targetURL")
    div.el-form(slot="dialogFormSlot")
      el-form-item(label="UUID" prop="uuid"  v-bind:rules="rules.uuid")
        el-input(v-model="formModel.uuid" )
      el-form-item(label="线路名称" prop="name"  v-bind:rules="rules.name")
        el-input(v-model="formModel.name")
      <!--el-form-item(label="纵轴名称" prop="field"  v-bind:rules="rules.field")-->
        <!--el-input(v-model="formModel.field" )-->
</template>

<script type="text/ecmascript-6">
  import {KshLinechartrequestURL} from '../config.toml'
  import FormModel from './model'

  export default {
    name: 'LinechartrequestEdit',
    data() {
      return {
        fileList: [],
        formModel: Object.assign({}, FormModel),
        labelWidth: '120px',
        rules: {
          uuid: [{required: true, message: '请输入UUID', trigger: 'change'}],
          name: [{required: true, message: '请输入线路名称', trigger: 'change'}]
          // field: [{required: true, message: '请输入纵轴名称', trigger: 'change'}]
        },
        targetURL: KshLinechartrequestURL
      }
    }
  }
</script>

<style scoped lang="stylus" type="text/stylus">

</style>
